package org.simple.learning.springbootlogback;

import org.simple.learning.springbootlogback.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringBootLogbackApplication implements CommandLineRunner {

    @Autowired
    private LogService logService;

    public static void main(String[] args) {
        SpringApplication.run(SpringBootLogbackApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        logService.info();
    }

}
